package com.sinothk.special.buyer.userblog.controller;

import com.sinothk.special.buyer.userblog.service.IUserBlogTipService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.jeecg.common.api.vo.Result;
import org.jeecg.common.aspect.annotation.AutoLog;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Description: 博客未读提醒
 * @Author: Liangyt
 * @Date: 2022-06-27
 * @Version: V1.0
 */
@Api(tags = "博客未读提醒")
@RestController
@RequestMapping("/blog/userBlogTip")
@Slf4j
public class UserBlogTipController {

    @Autowired
    private IUserBlogTipService userBlogTipService;

    /**
     * 清除未读博客消息提醒
     *
     * @return
     */
    @AutoLog(value = "清除未读博客消息提醒")
    @ApiOperation(value = "清除未读博客消息提醒", notes = "清除未读博客消息提醒")
    @GetMapping(value = "/clearAllBlogUnread")
    public Result<?> clearAllBlogUnread() {
        userBlogTipService.clearAllBlogUnread();
        return Result.OK("操作成功");
    }
}
